from litestar.contrib.sqlalchemy.base import UUIDAuditBase
from sqlalchemy.orm import Mapped, mapped_column


class NavCategory(UUIDAuditBase):
    __tablename__ = "nav_category"

    parent_id: Mapped[str] = mapped_column(nullable=True)
    user_id: Mapped[str]
    name: Mapped[str]
    icon: Mapped[str]


class NavItem(UUIDAuditBase):
    __tablename__ = "nav_item"

    category_id: Mapped[str]
    user_id: Mapped[str]
    name: Mapped[str]
    icon: Mapped[str]
    url: Mapped[str]
